using Newtonsoft.Json;
using Newtonsoft.Json.Converters;
using Newtonsoft.Json.Serialization;

namespace OpenWaves.ActivityFeed.Web
{
    public static class JsonNetSerializerSettings
    {
        public static JsonSerializerSettings Current
        {
            get
            {
                return new JsonSerializerSettings
                           {
                               ConstructorHandling = ConstructorHandling.AllowNonPublicDefaultConstructor,
                               ContractResolver = new CamelCasePropertyNamesContractResolver(),
                               Converters = {new IsoDateTimeConverter(), new StringEnumConverter() { CamelCaseText = true }}
                           };
            }
        }
    }
}